package com.intelligentcar.springboot.service;

import com.intelligentcar.springboot.bean.Linelist;
import com.intelligentcar.springboot.bean.Scheduling;
import com.intelligentcar.springboot.bean.Station;
import com.intelligentcar.springboot.bean.Vehicle;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StationServer {
    public int insertStation(Station station);

    //查询站点
    public List<Station> selectStation();

    //查询线路
    public List<Linelist> selectLine();

    //插入线路
    public int insertLine(Linelist linelist);

    //删除站点
    public int deleteStation(String id);


    //修改站点
    public int updateStation(String stationName, Long id);


    //删除线路
    public int deleteLine(String lineState,
                          Long luid);

    //查询线路id
    public List<Linelist> selectLineId();


    //查询车辆号
    public List<Vehicle> selectVehicleId();

    //查询车站编号
    public List<Station> selectStationId();

    //查询站点表种的所有站点
    public List<Station> selectstation ();

    //修改站点
    public int updateStation(String stationName,String selectLngLat, Long id);

    //查询车站名
    public List<Station> selectStationName();

    //查询车站点
    public List<Station> selectStation2(@Param(value = "stationName")String stationName,
                                        @Param(value = "id")Long id);


    //删除站点(软删除)
    public int deleteStation(@Param(value = "id")String id,
                             @Param(value = "stationName")String stationName);

    //查询线路
    public List<Linelist> selectLineList();

    //查询单个线路
    public List<Linelist> selectOneLineList(@Param(value = "lineId")String lineId);

    //删除单个线路
    public int deleteOneLineList(String lineId);


    //修改线路
    public int updateLine(
            String insertBeginLineName,
            String insertEndLineName,
            String lineId);

    //查询一共有多少站点
    public int selectCountStation(String rid);

}
